// @import '~taro-parse/dist/style/main.scss';

.card_container_A {
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    margin: 0 20px;
    margin-bottom: 20px;


    .todo_icon {
        position: absolute;
        top: 24px;
        left: 24px;
        width: 56px;
        height: 56px;
        background-color: #d9feeb;
    }

    .todo-type0 {
        background: url(../../images/考试.png) no-repeat;
        background-size: contain;
    }

    .todo-type1 {
        background: url(../../images/type-1.svg) no-repeat;
        background-size: contain;
    }

    .todo-type2 {
        background: url(../../images/type2.svg) no-repeat;
        background-size: contain;
    }

    .todo-type3 {
        background: url(../../images/type-3.svg) no-repeat;
        background-size: contain;
    }

    .todo-type4 {
        background: url(../../images/type-4.svg) no-repeat;
        background-size: contain;
    }


    .brforeclass {
        background: url(../../images/课前预习.png) no-repeat;
        background-size: contain;
    }

    .todo_body {
        padding: 27px 44px 30px 84px;
        border-bottom:1px solid #e3e3e3;

        .title_box {
            display: flex;
            align-items: center;

            .title {
                line-height: 44px;
                font-size: 30px;
                color: #252525;
            }

            .dead_time {
                display: inline-block;
                margin-left: 5px;
                padding: 0 10px;
                height: 44px;
                line-height: 44px;
                font-weight: normal;
                background-color: rgba(#ff6600, 0.08);
                color: #ff6600;
            }

        }

        .content {
            line-height: 36px;
            font-size: 26px;
            color: #999999;
            margin-top: 16px;
        }

        .time {
            display: flex;
            align-items: center;
            margin-top: 15px;
            font-size: 24px;
            color: #999999;

            .line {
                width: 1px;
                height: 16px;
                background-color: #d9d9d9;
                margin: 0 15px;
            }
        }
    }

    .cutdown {
        position: absolute;
        right: 0;
        top: 28px;
    }
}

.card_container_B {
    position: relative;
    width: 100vw;
    background-color: #ffffff;
    border-radius: 12px;
    font-size: 24px;

    .todo_icon_active,
    .todo_icon {
        position: absolute;
        top: 47px;
        left: 24px;
        width: 10px;
        height: 10px;
        transform: rotate(45deg);
    }

    .todo_icon_active {
        background-color: #f64545;
    }

    .todo_icon {
        background-color: #cccccc;
    }

    .urgent_txt {
        margin: 0 5px;
        color: #ff0202;
    }

    .lg_badge_B {
        width: auto;
        padding: 0 10px;
    }

    .todo_body {
        padding: 32px 50px 28px 50px;
        overflow: hidden;

        .title {
            vertical-align: middle;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
            font-size: 30px;
            line-height: 48px;
            color: #333333;
            font-weight: 700;

            .urgent_txt {
                display: inline-block;
            }

            // margin-bottom: 20px;
        }

        .content {
            margin-top: 12px;
            font-size: 26px;
            line-height: 36px;
            max-height: 39px;
            width: 100%;
            // word-break: break-all;
            // overflow: hidden; /* 溢出隐藏 */
            // text-overflow: ellipsis; /* 文本溢出时显示省略号 */
            // white-space: nowrap; /* 文本不换行 */
            word-wrap: break-word;
            white-space: normal;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            overflow: hidden;
            color: #666666;
            pointer-events: none;

            & img{
                display: none;
                max-width: 650px;
            }
            & audio{
                display: none;
            }
            & video{
                display: none;
            }

            & *{
                font-size: 26px!important;
                line-height: 1.5!important; /* 调整行高 */
            }
        }

        .footer {
            margin-top: 10px;
            display: flex;
            align-items: center;

            .publisher {
                display: inline-block;
                max-width: 120px;
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
                color: #999999;
                font-size: 22px;
            }

            .line {
                width: 1px;
                height: 16px;
                background-color: #d9d9d9;
                margin: 0 15px;
            }

            .time {
                color: #999999;
                font-size: 22px;
            }

            .already_read {
                color: #999999 !important;
                font-size: 22px;
            }

            .no_read {
                color: #ff6600;
                font-size: 22px;
            }
        }
    }

    .already_read {
        color: #999999 !important;
    }

    &::after {
        content: "";
        position: absolute;
        bottom: 1px;
        left: 50%;
        transform: translateX(-50%);
        width: 92vw;
        height: 1px;
        background-color: #e3e3e3;
        border-radius: 1px;
        opacity: 0.72;
    }
}

.card_container_C {
    position: relative;
    width: 100vw;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 29px 36px 0px 31px;
    box-sizing: border-box;
    font-size: 24px;

    .main_body {
        padding-bottom: 24px;
        border-bottom: 1px solid #e3e3e3;

        .title {
            font-family: 'PingFang SC';
            font-size: 28px;
            font-weight: normal;
            font-stretch: normal;
            line-height: 40px;
            letter-spacing: 0px;
            color: #333333;
        }

        .footer {
            display: flex;
            align-items: center;
            margin-top: 8px;
            height: 30px;

            .line {
                width: 1px;
                height: 16px;
                margin: 0 16px;
                background-color: #d9d9d9;
            }

            .content,
            .time {
                color: #999999;
            }
        }
    }
}

.card_container_D {
    position: relative;
    width: 100vw;
    padding-left: 96px;
    box-sizing: border-box;
    border-bottom: 1px solid #f2f2f2;

    .cardbody {
        padding: 29px 24px;

        .avatar {
            position: absolute;
            top: 33px;
            left: 24px;
            width: 74px;
            height: 74px;
            border-radius: 100%;
            background-image: url(../../../images/DiscussionGroup-bg.png);
            background-size: contain;
            background-color: #ccc;
        }

        .name {
            max-width: 280px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 32px;
            line-height: 40px;
        }

        .content {
            display: inline-block;
            height: 40px;
            max-width: 486px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 26px;
            line-height: 40px;
            color: #999999;
        }

        .right_sign {
            position: absolute;
            right: 32px;
            bottom: 38px;
            display: flex;
            align-items: center;

            .shield {
                width: 22px;
                height: 22px;
                background: url(../../../images//禁止.png);
                background-size: contain;
            }

            .news_point {
                width: 12px;
                height: 12px;
                margin-left: 20px;
                background-color: #ff4000;
                border-radius: 6px;
            }

            .nodisturb {
                width: 22px;
                height: 24px;
                background: url(../../../images/免打扰.png) no-repeat;
                background-size: contain;
            }

            .mes_count {
                // width: 32px;
                padding: 0 10px;
                color: #fff;
                height: 32px;
                color: #fff;
                text-align: center;
                line-height: 32px;
                background-color: #ff4000;
                border-radius: 16px;
            }

            &:last-child {
                margin-right: 0 !important;
            }
        }

        .time {
            position: absolute;
            top: 25px;
            right: 23px;
            font-size: 22px;
            color: #989898;
        }
    }

    .bubble {
        position: absolute;
        top: -67px;
        left: 16px;
        // width: 319px;
        height: 55px;
        line-height: 55px;
        border-radius: 10px;
        z-index: 999;
        background-color: rgba($color: #000000, $alpha: .8);
        box-sizing: border-box;

        .text {
            color: #ffffff;
            padding: 15px 24px;
            height: 100%;
            box-sizing: border-box;
        }

        .del,
        .shield {
            border-right: 1px solid rgba($color: #fff, $alpha: .5);
        }

        &::after {
            content: '';
            position: absolute;
            bottom: -11px;
            left: 71px;
            width: 0;
            height: 0;
            border-left: 12px solid transparent;
            border-right: 12px solid transparent;
            border-top: 11px solid rgba($color: #000000, $alpha: .8);
        }
    }

    .none {
        display: none;
    }

    &::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 92vw;
        height: 1px;
        background-color: #e3e3e3;
        border-radius: 1px;
        opacity: 0.72;
    }
}

.pressed {
    background-color: #d8d8d8;
}